package com.hoo.exception;

/**
 * 全局业务异常
 * 
 * 
 */
public class SaleException extends RuntimeException {

	private static final long serialVersionUID = 6943228226008770170L;

	private String errorCode;

	private String errorMsg;

	public String getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}

	public String getErrorMsg() {
		return errorMsg;
	}

	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}

	public SaleException() {
		super();
	}

	public SaleException(String message) {
		super(message);
		this.setErrorMsg(message);
	}

	public SaleException(String message, String errorCode) {
		super(message);
		this.setErrorCode(errorCode);
		this.setErrorMsg(message);
	}

	public SaleException(String message, Exception e, String errorCode) {
		super(message, e);
		this.setErrorCode(errorCode);
		this.setErrorMsg(message);
	}

}